

	<?php if (isset($tmpl_header)): ?>
		<?php include_partial('zdViewer/tmpls/'.$tmpl_header) ?>	
	<?php endif; ?>
		
		<div class="size12">
		
	     <?php if ($v) 
	     {
		     if(file_exists(sfConfig::get('sf_app_dir').'/modules/'.$sf_request->getParameter('module').'/templates/_tmpls/'.$tmpl_name.'.php'))
		     {
		     	 include_partial($sf_request->getParameter('module').'/tmpls/'.$tmpl_name, array('v'=>$v)) ;
		     }
		     else 
		      {
		          include_partial('zdViewer/tmpls/'.$tmpl_name, array('v'=>$v));
		      }
		     }
	     ?>
	
		</div>

	<?php if (isset($tmpl_footer)): ?>
		<?php include_partial('zdViewer/tmpls/'.$tmpl_footer) ?>	
	<?php endif; ?>
	